﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class basecon_header : System.Web.UI.UserControl
{
    public string AjaxJsFile;
    public string BaseCssFile;
    public string JqueryFile;
    public string EditorJsFile;
    public string EditorCssFile;
    public string MainJsFile;
    public string MD5JsFile;
    public string IsLogin;
    public string DateSelectorJsFile;
    public string UploadifyCss;
    public string UploadifyJs;
    public string UploadifySwf;
    public string BlockUIJsFile;
    public string AjaxFileUploadJsFile;
    public string QtipJsFile;
    public string MessagerJsFile;

    private bool _EnableEditor = false;
    private bool _EnableDateSelector = false;
    private bool _EnableUploadify = false;
    private bool _EnableBlockUIJs = true;
    private bool _EnableAjaxFileUploadJs = false;
    private bool _EnableQtipJs = true;
    private bool _EnableMessagerJs = true;

    protected void Page_Load(object sender, EventArgs e)
    {
        this.MD5JsFile = Params.BaseFolderHttp + "md5.js";
        this.AjaxJsFile = Params.BaseFolderHttp + "ajax.js";
        this.BaseCssFile = Params.BaseFolderHttp + "css.css";
        this.JqueryFile = Params.BaseFolderHttp + "jquery-1.3.2.js";
        //this.JqueryFile = Params.BaseFolderHttp + "jquery-min.js";
        this.DateSelectorJsFile = Params.BaseFolderHttp + "dateselector.js";
        this.MainJsFile = Params.BaseFolderHttp + "main.js";
        this.EditorJsFile = Params.BaseFolderHttp + "kissy/editor-aio.js";
        this.EditorCssFile = Params.BaseFolderHttp + "kissy/themes/default/editor-min.css";
        this.UploadifyCss = Params.BaseFolderHttp + "uploadify/uploadify.css";
        this.UploadifyJs = Params.BaseFolderHttp + "uploadify/swfobject.js";
        this.UploadifySwf = Params.BaseFolderHttp + "uploadify/jquery.uploadify.v2.0.2.min.js";
        this.BlockUIJsFile = Params.BaseFolderHttp + "jquery.blockUI.js";
        this.AjaxFileUploadJsFile = Params.BaseFolderHttp + "ajaxfileupload.js";
        this.QtipJsFile = Params.BaseFolderHttp + "jquery.qtip-1.0.0-rc3.min.js";
        this.MessagerJsFile = Params.BaseFolderHttp + "jquery.messager.js";
        this.IsLogin = "false";
    }

    public bool EnableEditor
    {
        set
        {
            this._EnableEditor = value;
        }
        get
        {
            return this._EnableEditor;
        }
    }

    public bool EnableDateSelector
    {
        set
        {
            this._EnableDateSelector = value;
        }
        get
        {
            return this._EnableDateSelector;
        }
    }

    public bool EnableUploadify
    {
        set
        {
            this._EnableUploadify = value;
        }
        get
        {
            return this._EnableUploadify;
        }
    }

    public bool EnableBlockUIJs
    {
        set
        {
            this._EnableBlockUIJs = value;
        }
        get
        {
            return this._EnableBlockUIJs;
        }
    }

    public bool EnableAjaxFileUploadJs
    {
        set
        {
            this._EnableAjaxFileUploadJs = value;
        }
        get
        {
            return this._EnableAjaxFileUploadJs;
        }
    }

    public bool EnableQtipJs
    {
        set
        {
            this._EnableQtipJs = value;
        }
        get
        {
            return this._EnableQtipJs;
        }
    }

    public bool EnableMessagerJs
    {
        set
        {
            this._EnableMessagerJs = value;
        }
        get
        {
            return this._EnableMessagerJs;
        }
    }
}
